package com.xiyu.service.enums.elder.register;

import com.xiyu.service.enums.common.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 外出登记陪同人类型
 */
@Getter
@AllArgsConstructor
public enum ElderGoOutEntourageType implements IntArrayValuable {
    /**
     * 家属
     */
    FAMILY(1, "家属"),
    /**
     * 护理人员
     */
    NURSE(2, "护理人员"),
    /**
     * 独自外出
     */
    ALONE(3, "独自外出");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderGoOutEntourageType::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderGoOutEntourageType::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }
}
